package com.activemq.service;

import com.activemq.springtest.service.JMSService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:bean1.xml"})
public class JMSServiceTest1 {
    @Autowired
    JMSService jmsService;

    @Test
    public void testSend() {
        jmsService.sendMsg("你好 spring，哈哈 111");
    }

}
